<?PHP 

$categories=get_sql('product_category','id',$where,NULL);


//paginate

$headers[]='Id';
$headers[]='Name';
$headers[]='Parent';
$headers[]='Action';
$show[]='id';
$show[]='name';
$show[]='parent';

$links['Edit']='index.php?cmd=edit&q=m/type/d_category.php&id=';
$ajax['Delete']='m/type/a_delete_category.php';

printformheader('Makes','Manufacturers');
if(!empty($categories))
{

	p_table($headers,$categories,$links,"class='tablesorter'",$show,$ajax,TRUE);

} 
printformfooter("Add Bike","?q=m/sc/d_bike.php&cmd=add",NULL,NULL,NULL,NULL);


 ?>
